package com.crazyhat.crazyhat.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

import java.time.LocalDateTime;

//社团审核 查看详情
@Data
public class ClubApprovalDetailDTO {
    private Integer clubId;
    private String clubName;
    private Integer leaderId;
    private String leaderName;
    private String clubDescription;
    private String category;
    private String requirements;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applyTime;
    /**
     * logo地址
     */
    @URL
    @TableField("logo_url")
    private String logoUrl;

    /**
     * 现有人数
     */
    @TableField("current_members")
    private Integer currentMembers;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("publish_time")
    private LocalDateTime publishTime;
}
